Skip to content

Rename a credential

Request

Renames a credential. The name is the only field that changes: a credential's access is set when it is created. The name is 1 to 128 characters, not only whitespace, with no control characters. It is stored as sent and must be unique in the organization, case included: a name that another credential has returns 409 with error code CREDENTIAL_NAME_TAKEN. A call with the token of a credential that no longer exists gets 403 with error code CALLER_CREDENTIAL_NOT_FOUND. Returns 404 when the organization has no credential with this client ID.

Security
oauth2(Required scopes: credentials:manage)
Path
clientIdstringrequired
Bodyapplication/jsonrequired
namestring
curl -i -X PATCH \
  'https://docs.talli.ai/_mock/referencev3/swagger/v3/distribution-manager/credentials/{clientId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string"
  }'

Responses

OK

Bodyapplication/json
clientIdstring
namestring
scopesPresetstring(CredentialScopesPreset)
Enum:"FullAccess""ReadOnly"
scopesArray of strings
createdOnstring, (date-time)
updatedOnstring, (date-time)
secretRotatedOnstring or null, (date-time)
Response
{ "clientId": "string", "name": "string", "scopesPreset": "FullAccess", "scopes": [ "string" ], "createdOn": "2019-08-24T14:15:22Z", "updatedOn": "2019-08-24T14:15:22Z", "secretRotatedOn": "2019-08-24T14:15:22Z" }